package com.example.dao;
import com.example.entity.Volunteer;
import com.example.entity.Organizations;
import com.example.entity.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UsersDao {
    List<Users> findAll();
    Users findUsersById(@Param("userid") Integer userid);
    int insert(Users users);
    int update(Users users);
    int delete(@Param("userid") Integer userid);
    List<Users> searchUsers(@Param("usernumber") String usernumber,@Param("usertype") String usertype);
    Users findByusernumberAndpassword(String usernumber,String password);
    int saveUser(Users user);
 Organizations findOrganizationInfoByUserId(int userid);
    Volunteer findVolunteerInfoByUserId(Integer userid);


}
